package com.BlackMesa.controllers;

import java.util.ArrayList;
import java.util.List;

import android.content.Context;
import android.graphics.drawable.Drawable;

import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;

public class OurItemOverlay extends ItemizedOverlay {
	
	private List<OverlayItem> overlays = new ArrayList<OverlayItem>();
	private Context context;
	
	public OurItemOverlay(Drawable defalutMarker){
		super(boundCenterBottom(defalutMarker));
	}
	
	public OurItemOverlay(Drawable defalutMarker, Context context){
		this(defalutMarker);
		this.context = context;
	}
	
	@Override
	protected OverlayItem createItem(int i) {
		return overlays.get(i);
	}
	
	public void addOverlay(OverlayItem item){
		overlays.add(item);
		populate();
	}

	@Override
	public int size() {
		// TODO Auto-generated method stub
		return overlays.size();
	}

}
